package hotel.compare.oversea.entity.master;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
*@Description: 爬取酒店记录表
*@Author: Zhang·jz
*@date: 2020/9/11
*/
@Data
@Table(name = "sys_spider_hotel_log")
public class SpiderHotelLog implements Serializable {
    private static final long serialVersionUID = 411839596901436792L;
    /**
     * 主键
     */
    private String id;

    /**
     * 校验酒店表主键id
     */
    private String ChId;

    /**
     * 携程酒店id
     */
    @Excel(name = "携程酒店id", orderNum = "1")
    private Integer switchsHotelId;

    /**
     * 携程酒店名称
     */
    @Excel(name = "携程酒店名称", orderNum = "2")
    private String switchsHotelName;

    /**
     *系统状态   0:正常  1:异常
     */
    private Integer state;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "modify_time")
    private Date modifyTime;

    /**
     * 备注
     */
    private String remark;


    /**
     *是否有代理 0：无 ；1 ：有
     */
    private Integer isAgent;

}
